package Submarine;

import javax.swing.*;

public class Amor extends SeaObject{

    public Amor(int x,int y){
        super(x,y,5,15,15);
    }

    @Override
    public void move() {
        y+=speed;
    }

    public ImageIcon getImage(){
        return Images.Amor;
    }

    public boolean isOutofBounds(){return y>World.HEIGHT || x<-this.width || x > World.WIDTH;}
}
